package com.zmm.weblog.web.controller;

import com.zmm.weblog.common.aspect.ApiOperationLog;
import com.zmm.weblog.common.utils.Response;
import com.zmm.weblog.web.service.BlogSettingsService;
import com.zmm.weblog.web.service.TagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:福禄寿
 * @Date:2024/4/26 下午12:33
 * @Des:weblog-springboot
 **/
@RestController
@RequestMapping("/blog")
@Slf4j
@Api("博客设置")
public class BlogSettingsController {

    @Autowired
    private BlogSettingsService blogSettingsService;

    @PostMapping("/settings/detail")
    @ApiOperation(value = "前台获取博客列表")
    @ApiOperationLog(description = "前台获取博客列表")
    public Response findBlogSettingsList() {
        return blogSettingsService.findBlogSettingsList();
    }
}
